﻿using System;

namespace _01Delegates
{
    class Program
    {
        static void Main(string[] args)
        {
            //SquareDelegate squareDelegate = PerformSquare;
            SquareDelegate squareDelegate = new SquareDelegate(PerformSquare);
            Console.WriteLine(squareDelegate(2));


        }

        private static int PerformSquare(int x) => x * x;
    }

    public delegate int SquareDelegate(int T);


}
